<script setup>
import Center from "./components/Center.vue";
import {ref,watch} from "vue";
import LeftTop from "./components/LeftTop.vue";
import LeftCenter from "./components/LeftCenter.vue";
import RightTop from "./components/RightTop.vue";
import CenterTool from "./components/CenterTool.vue";
import RightBottom from "./components/RightBottom.vue";
import LeftBottom from "./components/LeftBottom.vue";
let year = ref(20)
watch(year,(newVal)=>{
  console.log(newVal)
})

</script>

<template>
  <div class="full-screen-div">
    <div class="left">
      <div class="left-item">
          <LeftTop></LeftTop>
      </div>
      <div class="left-item">
        <LeftCenter></LeftCenter>
      </div>
      <div class="left-item">
        <LeftBottom></LeftBottom>
      </div>
    </div>
    <div class="right">
      <div class="draw">
        <div class="draw-left">
          <div class="title">
            <img src="../public/高考.svg" style="height: 50px;width: 50px;margin-right: 10px" alt="高考"/>
            五年一分一段表分析
          </div>
          <div class="content">
            <div>
              <CenterTool :year="year"></CenterTool>
            </div>

          </div>

        </div>

        <div class="draw-right">
          <div class="right-item">
            <div>
              <RightTop :year="year"></RightTop>
            </div>

          </div>
          <div class="right-item">
            <div>
              <RightBottom :year="year"></RightBottom>
            </div>
          </div>
        </div>
      </div>
      <div class="shaft">
        <div class="shaft-content">
          <span>时间轴</span>
          <el-slider v-model="year" :step="1" show-stops :max="24" :min="20" />
        </div>

      </div>
    </div>
  </div>
</template>

<style scoped>
*{
  padding:0;
  margin:0;
  box-sizing: border-box;
  font-size: 14px;
}
.full-screen-div {
  display: flex;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  background: linear-gradient(to bottom, rgb(71,165,137), rgb(210, 245, 231));
}

.left{
  display: flex;
  justify-content: space-between;
  flex-direction:column;
  width: 25%;
  height: 100%;

}
.right{
  display: flex;
  flex-direction: column;
  width: 75%;
  height: 100%;
  background-color: rgb(255,255,255,0);
}

.left-item{
  width: 100%;
  height: 33%;
  border-radius: 5px;
  background-color: rgb(232,243,240,0.7);
}

.shaft{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 10%;
  width: 100%;
}
.draw{
  display: flex;
  height: 90%;
  width: 100%;
}
.draw-left{
  height: 100%;
  width: 80%;
}
.draw-right{
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  height: 100%;
  width: 30%;
}
.title{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 20%;
  width: 100%;
  border-radius: 10px;
  font-size: 45px;
  color: white;
}
.content{
  height: 80%;
  width: 100%;
  padding: 5px;
}
.content div{
  border-radius: 5px;
  height: 100%;
  width: 100%;
  background-color: rgb(232,243,240,0.7);
}
.right-item{
  padding: 3px;
  height: 49%;
  width: 100%;
}

.right-item div{
  border-radius: 5px;
  height: 100%;
  width: 100%;
  background-color: rgb(232,243,240,0.7);
}

.shaft-content{
  height: 50%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background-color: rgba(71, 180, 178, 0.62);
  padding: 20px;
}
.shaft-content span{
  height: 100%;
  width: 10%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.content .center{
  height: 100%;
  width: 100%;
}
</style>
